package LearnConstructors;

public class Person {

    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name) {
        this(name, 18);
    }

    public Person() {
        this("Jack");
    }

    public String getName() {
        return this.name;
    }

    public int getAge(){
        return this.age;
    }

    // public void Person(String name) {
    //     this.name = name;
    // }
}
